package com.zzyl.mapper;

import com.zzyl.entity.NursingProjectPlan;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Description NursingProjectPlanMapper
 * @Author Peng Hongyan
 * @Date 2025-08-30
 */
@Mapper
public interface NursingProjectPlanMapper {
    void insertNursingProjectPlanBatch( List<NursingProjectPlan> nursingProjectPlanList);

    List<NursingProjectPlan> getByPlanId(int planId);

    void updateNursingProjectPlan(NursingProjectPlan nursingProjectPlan);

    @Delete("delete from nursing_project_plan where plan_id = #{planId}")
    void deleteByPlanId(int planId);

    @Select("select count(*) from nursing_project_plan where project_id = #{projectId}")
    Integer countByProjectId(Long id);
}
